﻿using System;
using System.Collections.Specialized;
using Jbe.Composite.Extensions;
using Jbe.TestSuite.Infrastructure.Interface;
using Jbe.TestSuite.Message.Demo.Applications;
using Jbe.TestSuite.Message.Demo.Presentation;
using Jbe.TestSuite.Message.Demo.Properties;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace Jbe.TestSuite.Message.Demo
{
    internal class Module : IModule
    {
        private readonly IApplicationContainer container;


        public Module(IApplicationContainer container)
        {
            this.container = container;

            container.RegisterType<IDemoView, DemoView>(true);
        }

        
        public void Initialize()
        {
            container.Resolve<ModuleController>().Initialize();
        }
    }
}
